{% extends 'djadmin/base.html' %}

{% load djadmin_tags %}

{% block title %}
    数据表删除 - 后台管理
{% endblock %}

{% block content %}
    <h2 class="page-header">{{ model_name }}</h2>
    <h3 class="page-header alert alert-danger">你确定要删除吗？</h3>

    {% for obj in objs %}
        {% display_all_related_objs obj as all_related_obj_eles %}
        {{ all_related_obj_eles|safe }}  {# 需要加上|safe，否则会直接显示源代码 #}
    {% endfor %}

    <form method="post">
        {% csrf_token %}
        <input class="hidden" value="yes" name="delete_confirm">
        <input class="hidden" value="{{ action }}" name="action">
        <input class="hidden" value="{{ selected_ids }}" name="selected_ids">
        <input type="submit" class="btn btn-danger" value="确认删除">
    </form>
{% endblock %}